<%--
  Created by IntelliJ IDEA.
  User: jackiechan
  Date: 2021/9/1
  Time: 10:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


<%
    Cookie[] cookies = request.getCookies();

    for (Cookie cookie : cookies) {
        String cookieName = cookie.getName();
        String value = cookie.getValue();
//        if (cookieName.equals("xxxx"))
    }

%>


parmas: ${param.name}<br>
parmas: ${paramValues}<br>
<%--
获取 header 的时候 要数字, 如果是字符串会出问题
header: ${header.accept-encoding}<br>
--%>
header: ${headerValues}<br>
<%--

cookie是固定开头,后面跟着的是 cookie 中你想要获取值的 name 的值 value 获取到值
--%>
cookie: ${cookie.username.value}<br>
cookie: ${cookie.age.value}<br>

<form action="${pageContext.servletContext.contextPath}/cookie">

    <input type="submit">
</form>
--------------------------
<a href="${pageContext.request.contextPath}/jstl/01jstl.jsp">fsdfdsfsd</a> <br>
</body>
</html>
